package learn_effective_java.item_31;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

public class Client {
	
	public static void main(String[] args) {
		Stack<Number> intStack = new Stack<>();
		List<Integer> intList = Arrays.asList(
											Integer.valueOf(1),
											Integer.valueOf(2),
											Integer.valueOf(3));
		intStack.pushAll(intList);
		
		Collection<Object> objects = new ArrayList<>();
		intStack.popAll(objects);
 	}
	
}
